package com.ifast.common.storage;
import org.springframework.core.io.Resource;

import org.springframework.web.multipart.MultipartFile;

import com.ifast.common.base.CoreService;
import com.ifast.oss.domain.FileDO;

import java.nio.file.Path;

import java.util.stream.Stream;

public interface StorageService{

    void init();

    String store(MultipartFile file);

    Stream<Path> loadAll();

    Path load(String filename);

    Resource loadAsResource(String filename);

    void deleteAll();

}